package com.hh;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.hh.entity.MultiStudent;
import com.hh.entity.Student;

public class Demo {
	public static void main(String[] args) {
		ApplicationContext context=new ClassPathXmlApplicationContext("spring.xml");
		Student st=(Student) context.getBean("temo");
		System.out.println(st);
		
//		MultiStudent mStudent=(MultiStudent) context.getBean("multi");
//		mStudent.show();
	}
}
